package org.xhnews.preferences;

public class Options {
  //新闻最大存储条目选项的标签
  public final static String NEWS_MAX_COUNT_LABELS[]={"20 条","30 条","50 条","100 条"};
  //新闻最大存储条目选项的值
  public final static int NEWS_MAX_COUNT_VALUES[]={20,30,50,100};
  //下载类型选项的标签
  public final static String NEWS_DOWNLOAD_TYPE_LABELS[]={"仅标题","全文下载(图片视频)","仅用WiFi网络下载全文"};
  //下载类型选项的值
  public final static int NEWS_DOWNLOAD_TYPE_VALUES[]={1,2,3};
  //更新间隔时间选项的标签
  public final static String UPDATE_INTERVAL_LABELS[]={"10 分钟","30 分钟","1 小时","4 小时","8 小时","24 小时","从不，手动更新"};
  //更新间隔时间选项的值
  public final static int UPDATE_INTERVAL_VALUES[]={10,30,60,240,480,1440,-1};
  //网络环境选项的标签
  public final static String SERVERS_LABELS[]={"公网服务器","内网服务器"};
  public final static String IS_READ_DOWN_LABELS[]={"是","否"};
  public final static boolean IS_READ_DOWN_VALUES[]={true,false};
  //网络环境选项的值
  public final static String SERVERS_ADDRS[]={"http://mis.xinhuanet.com/","http://172.16.139.1/"};  
  public static int getIndexOfOptions(int value,int[] options){
	  for(int i=0;i<options.length;i++){
		  if(value==options[i])
			  return i;
	  }
	  return -1;
  }
}
